<!--
  Generated template for the IntraCityDistributionPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>{{intraCityDistributionTask.businessTitle}}</ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>

  <ion-item>
    <ion-label>业务编码</ion-label>
    <ion-input placeholder="[提交后自动生成]" type="text" disabled [(ngModel)]="intraCityDistributionTask.businessCode"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>业务标题</ion-label>
    <ion-input placeholder="[提交后自动生成]" type="text" disabled [(ngModel)]="intraCityDistributionTask.businessTitle"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>业务类型</ion-label>
    <ion-input placeholder="[不可更改]" type="text" disabled [(ngModel)]="intraCityDistributionTask.businessTypeName"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>商品名称</ion-label>
    <ion-input placeholder="[请填写商品名称]" type="text" [(ngModel)]="intraCityDistributionTask.commodityName"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>配送费用</ion-label>
    <ion-input placeholder="[请填写配送费用]" type="text" [(ngModel)]="intraCityDistributionTask.amount"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>取货位置</ion-label>
    <ion-input (click)="selectSource()" placeholder="[点击设置取货位置]" type="text" disabled [(ngModel)]="intraCityDistributionTask.sourceAddressInfo"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>详细位置</ion-label>
    <ion-input placeholder="[请填写详细位置]" type="text" [(ngModel)]="intraCityDistributionTask.sourceAddress"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>取货联系人</ion-label>
    <ion-input placeholder="[请填写取货联系人]" type="text" [(ngModel)]="intraCityDistributionTask.sourceLink"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>取货联系电话</ion-label>
    <ion-input placeholder="[请填写取货联系电话]" type="text" [(ngModel)]="intraCityDistributionTask.sourceTelephone"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>送货位置</ion-label>
    <ion-input placeholder="[点击选择送货位置]" disabled (click)="selectDestination()" type="text" [(ngModel)]="intraCityDistributionTask.destinationAddressInfo"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>送货详细位置</ion-label>
    <ion-input placeholder="[请填写详细位置]" type="text" [(ngModel)]="intraCityDistributionTask.destinationAddress"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>送货联系人</ion-label>
    <ion-input placeholder="[请填写送货联系人]" type="text" [(ngModel)]="intraCityDistributionTask.destinationLink"></ion-input>
  </ion-item>

  <ion-item>
    <ion-label>送货联系电话</ion-label>
    <ion-input placeholder="[请填写送货联系电话]" type="text" [(ngModel)]="intraCityDistributionTask.destinationTelephone"></ion-input>
  </ion-item>

  <button *ngIf="intraCityDistributionTask.id==undefined || intraCityDistributionTask.intraCityDistributionStatus == 'NEW' || intraCityDistributionTask.intraCityDistributionStatus == 'CONFIRM'"
    class="saveButton" (click)="save()" ion-button small>保存</button>
  <button *ngIf="intraCityDistributionTask.id!=undefined && (intraCityDistributionTask.intraCityDistributionStatus == 'NEW' || intraCityDistributionTask.intraCityDistributionStatus == 'CONFIRM')"
    class="publishButton" (click)="publish()" ion-button small>发布</button>
  <button *ngIf="intraCityDistributionTask.id!=undefined && (intraCityDistributionTask.intraCityDistributionStatus == 'NEW' || intraCityDistributionTask.intraCityDistributionStatus == 'CONFIRM')"
    class="deleteButton" (click)="delete()" ion-button small>删除</button>

</ion-content>